what is the difference between filter and find method in javascript